package org.beans.expense.common.page;


import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.beans.expense.common.CommonConstants;

/**
 * @author: arunachalam
 * @since: 2/16/13
 */
public class AbstractBasePage extends WebPage
{
    public AbstractBasePage()
    {
        super();
        add(CreateTitle());
    }

    @Override
    public void renderHead(IHeaderResponse response)
    {
        response.render(CssHeaderItem.forReference(CommonConstants.CSS_COMMON));
    }

    private Label CreateTitle()
    {
        return new Label("title", "Expense management");
    }

    Label createPageHeader()
    {
        return new Label("header", getString("header"));
    }
}
